package main

import (
	"io"
	"net/http"
	"net/http/cookiejar"
	"os"
)

func jarCookies() {
	j, _ := cookiejar.New(nil)
	client := &http.Client{
		Jar: j,
	}
	response, _ := client.Get("http://httpbin.org/cookies/set?freeform=name")
	defer func() {
		response.Body.Close()
	}()
	io.Copy(os.Stdout, response.Body)

}
func main() {
	jarCookies()
}
